import PaginationDto from 'apps/admin/src/dto/pagination.dto';
import { IsInt, IsNumber, IsOptional, IsString, MaxLength, Min } from 'class-validator';
export class PageDto extends PaginationDto {
    
    @MaxLength(30)
    @IsString({})
    @IsOptional()
    orderNo:string;
}



export class RecahrgeDto {
    @Min(1)
    @IsInt()
    userId:number;



    @Min(0)
    @IsNumber()
    amount:number;

    @Min(0)
    @IsNumber()
    rewardAmount:number;
}